﻿<%@ Page Title="Add Person to reservation" Language="C#" MasterPageFile="~/Site.Master" ValidateRequest="false" AutoEventWireup="true" CodeBehind="AddPerson.aspx.cs" Inherits="TouristAgencyAsp.AddPerson" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="Label1" runat="server" Text="First Name: "></asp:Label>
    <asp:TextBox ID="fNameTxt" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidatorFirstName" runat="server"
                ControlToValidate="fNameTxt"
                Display="Dynamic"
                ErrorMessage="User name is required"
                ForeColor="Red">
    </asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="Label2" runat="server" Text="Last Name"></asp:Label>
    <asp:TextBox ID="lNameTxt" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidatorLastName" runat="server"
                ControlToValidate="lNameTxt"
                Display="Dynamic"
                ErrorMessage="User name is required"
                ForeColor="Red">
    </asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="Label3" runat="server" Text="Passport Number"></asp:Label>
    <asp:TextBox ID="passNumTxt" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidatorPassNum" runat="server"
                ControlToValidate="passNumTxt"
                Display="Dynamic"
                ErrorMessage="User name is required"
                ForeColor="Red">
    </asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Button ID="addBtn" runat="server" Text="Add to reservation" 
        onclick="addBtn_Click" />
</asp:Content>

